<template>
  <div class="mine">
    <el-container>
      <el-aside width="20%"><MineNav /> </el-aside>
      <el-container>
        <el-header
          ><!-- 面包屑 -->
          <el-breadcrumb separator="/">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <template v-for="item in this.$route.matched">
              <el-breadcrumb-item :to="item.path" :key="item.path">{{
                item.meta.title
              }}</el-breadcrumb-item>
            </template> </el-breadcrumb
          ><!-- 面包屑 -->
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import MineNav from "./MineNav";
export default {
  name: "Mine",
  data() {
    return {};
  },
  computed: {},
  watch: {},

  methods: {},
  created() {
    // console.log(this.$route);
  },
  mounted() {},
  components: { MineNav },
};
</script>
<style scoped>
.el-header,
.el-footer {
  padding: 20px;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  height: 100%;
  text-align: center;
  line-height: 200px;
  overflow: hidden;
}

.el-main {
  text-align: center;
  overflow-x: hidden;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}
.el-container {
  height: 100%;
}
.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.mine {
  height: 100%;
}
</style>